import config from '../../renderer/src/config/index'
import axios from 'axios'
let discordProxyJs = [
  {
    keyword: '/29062.',
    origin: 's.length=0,null!=this._onDataReady&&this._onDataReady(t)',
    rewrite: `window.__base__config__ && (t = window.__base__config__.run.call(this, t));s.length=0,null!=this._onDataReady&&this._onDataReady(t)`
  }
]

export default async function () {
  try {
    const response = await axios.get(config.baseUrl + 'mjapp.json')
    if (response.data.discordProxyJs) {
      discordProxyJs = response.data.discordProxyJs
    }
  } catch (error) {}
  return discordProxyJs
}
